﻿using System;

namespace BonsaiScrum.Bus
{
    public class RouteNotRegisteredException : Exception
    {
        public Type MessageType { get; private set; }

        public RouteNotRegisteredException(Type messageType)
        {
            MessageType = messageType;
        }

        public override string Message
        {
            get
            {
                return string.Format("No handler registered for the '{0}' message.", MessageType.FullName);
            }
        }
    }
}
